package com.qys.livesMall.financial.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户完成线下理财信息
 * </p>
 *
 * @author
 * @since 2023-06-10
 */
@Getter
@Setter
@TableName("h2_financial_offline_user")
@Schema(name = "FinancialOfflineUser", description = "用户完成线下理财信息")
public class FinancialOfflineUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private Long userId;

    @Schema(description = "理财Id")
    @TableField(value = "financial_id")
    private Long financialId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "理财明细数量")
    private Byte financialCount;

    @Schema(description = "用户完成数量")
    private Byte finishCount;

    @Schema(description = "完成任务序号(json数组)")
    private String financialSort;

    @Schema(description = "完成任务时间")
    private LocalDateTime finishTime;

    @Schema(description = "下一次可完成任务时间")
    private LocalDate nextFinancialTime;

    @Schema(description = "获得的奖励")
    private BigDecimal reward;

    @Schema(description = "单号")
    private String orderNo;
}
